<?php echo form_open('payroll/createpayroll',array('class'=>'form-horizontal','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
        <label class="control-label">Staff</label>
        <div class="controls">
          <?php echo form_dropdown('StaffID',$staffs) ?>
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Payroll Date</label>
        <div class="controls">
          <input type="text" name="PayRollDate" class="validate[required] datepicker" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Gross Salary</label>
        <div class="controls">
          <input type="text" name="grossSalary" placeholder="Gross Salary" class="validate[required]" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Salary Tax</label>
        <div class="controls">
          <input type="text" name="SalaryTax" placeholder="Salary Tax" class="validate[required]" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Other</label>
        <div class="controls">
          <input type="text" name="Other" placeholder="Other" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Salary Advance</label>
        <div class="controls">
          <input type="text" name="SalaryAdvance" placeholder="Salary Advance" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Health Benifit</label>
        <div class="controls">
          <input type="text" name="HealthBenifit" placeholder="Health Benifit" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">PhoneAllowance</label>
        <div class="controls">
          <input type="text" name="PhoneAllowance" placeholder="Phone Allowance" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Bank Charge</label>
        <div class="controls">
          <input type="text" name="BankCharge" placeholder="Bank Charge" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Annual Leave</label>
        <div class="controls">
          <input type="text" name="AnnualLeave" placeholder="Annual Leave" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Annual Bonus</label>
        <div class="controls">
          <input type="text" name="AnnualBonus" placeholder="Annual Bonus" />
        </div>
  </div>
  <div class="control-group">
        <label class="control-label">Over Time</label>
        <div class="controls">
          <input type="text" name="OverTime" placeholder="Over Time" />
        </div>
  </div>
  <div class="control-group">
    <label class="control-label">Notes</label>
    <div class="controls">
       <textarea name="Notes" placeholder="Notes" rows="3"></textarea>
    </div>
  </div>
  <?php echo $form; ?>
 </fieldset> 

<?php echo form_close();?>